Auto merge of #5185 - matklad:printf-debugging-for-life, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 15 Mar 2018 14:14:51 +0000 (14:14 +0000)
committerbors <bors@rust-lang.org>
Thu, 15 Mar 2018 14:14:51 +0000 (14:14 +0000)
commitbe19a1b6746140bb6e20b593198543180bf76257
treedf0428349e2f10a3cbe2a6b171e7ef04e4104e9e
parent9895340d9f4e29f3899b34a666e1c10d73081493
parent005bd4b4fb8dda8f5984f91b79fadb8c997ee036
Auto merge of #5185 - matklad:printf-debugging-for-life, r=alexcrichton

Add a helper method to show stdout/err in tests

So, all this time debugging Cargo was rather annoying to me, because added `println!`s tend not to show up in the test output, because they happen in the child process. So, let's add a method which just streams the subordinate process output?

@alexcrichton I wonder how you usually debug Cargo tests? Or ... are you just not making bugs to begin with? :)